import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { renderRoutes } from '../imports/startup/client/routes.jsx';
 
import App from '../imports/ui/App.jsx';
import { Session } from 'meteor/session'

Meteor.startup(() => {
  var injectTapEventPlugin = require("react-tap-event-plugin");
  injectTapEventPlugin();
  /*Meteor.call('account.currentUser',function(err, result){
      if(err){
          console.log(err);
      } else {
          Session.set("currentUser", result);
      }
      render(renderRoutes(), document.getElementById('render-target'));
  });*/

 //系统需要采用登录控制，此处代码不需要预设一个用户信息到sesSession
 //modify by jiangbuyun 2017-01-17
  render(renderRoutes(), document.getElementById('render-target'));

});